export component Toast inherits Window {
    title: "提示";
    width: 200px;
    height: 40px;
    always-on-top: true;
    background: transparent;

    callback closed();

    Rectangle {
        background: #333333;
        border-radius: 4px;
        opacity: 0.9;
        width: parent.width;
        height: parent.height;

        Text {
            text: "拆分成功！";
            color: white;
            font-size: 14px;
            horizontal-alignment: center;
            vertical-alignment: center;
        }
    }

    Timer {
        interval: 2s;
        triggered => {
            root.closed();
        }
    }
}
